package com.phiture.erp.stock.dal.mapper;

import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import com.phiture.erp.stock.dal.entity.ErpWarehouseDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author YH
 * @date 2025/4/13
 */

@Mapper
public interface ErpWarehouseMapper extends BaseMapperX<ErpWarehouseDO> {
    default ErpWarehouseDO selectByDefaultStatus() {
        return selectOne(ErpWarehouseDO::getDefaultStatus, true);
    }

    default List<ErpWarehouseDO> selectListByStatus(Integer status) {
        return selectList(ErpWarehouseDO::getStatus, status);
    }
}
